import { fetchGet, fetchPost } from '../utils/request';

// bdChatV2  AI 心理测评对话
export const bdChatV1 = (data: any) => fetchPost('/chat/bd', data);

export const bdChatV2 = (data: any) => fetchPost('/chat/bdv2', data, {
    responseType: 'stream',
});

// getChatHistory 对话历史记录
export const getChatHistory = () => fetchGet('/chat/history', {});

// resetChat 重新开始对话
export const resetChat = () => fetchPost('/chat/restart', {});